!
function() {
    fish.admin.config({
        countDown: {
            v: "0.1",
            g: 13
        },
        dialog: {
            v: "0.1",
            css: 1,
            g: 13082102
        }
    }),
    fish.ready(function() {
        var cookieinfo = fish.cookie.get("us");
        cookieinfo && (fish.one("#showName").html(fish.cookie.get("us", "nickName")), fish.one(".mem_grade span").addClass("lev_" + parseInt(fish.cookie.get("us", "level"))), fish.one(".mem_box .mem_pic").addClass("member_pic" + parseInt(fish.cookie.get("us", "level"))));
        var useVal = fish.one("#userTrMoney"),
        useSec = fish.one("#userSce");
        useVal.html() < 800 ? useVal.css("width:36%") : useVal.html() < 5e3 ? useVal.css("width:60%") : useVal.html() < 2e4 ? useVal.css("width:90%") : useVal.css("width:100%"),
        "弱" === useSec.html() ? useSec.css("width:30%") : "中" === useSec.html() ? useSec.css("width:70%") : useSec.css("width:100%"),
        function() {
            function a(a, c) {
                return "<li><div>" + h(a, c) + '<img style="opacity:0;filter:alpha(opacity=0)" src="' + a.ProductImgUrl + '" alt="' + a.Title + '"></a>' + d(a.ProjectType) + e(a.preLabel) + '</div><div class="pro_name"><div>' + h(a, c) + g(a.Title) + "</a></div>" + b(a) + f(a) + "</div></li>"
            }
            function b(a) {
                switch (parseInt(a.productId, 10)) {
                case 4:
                case 7:
                case 9:
                    return "<strong>" + (a.cityName ? a.cityName: "") + "出发</strong>";
                default:
                    return "<strong>" + (a.cityName ? a.cityName: "") + "</strong>"
                }
            }
            function c() {
                var a, b;
                return a = fish.cookie.get("__tctma"),
                a ? (b = a.split(".")[2].substring(0, 10), fish.parseTime(new Date(1e3 * parseInt(b)), {
                    timeMode: "YYYY-MM-DD hh:mm:ss"
                })) : void 0
            }
            function d(a) {
                switch (parseInt(a, 10)) {
                case 1:
                    return "<span>酒店<em></em></span>";
                case 3:
                    return "<span>景点<em></em></span>";
                case 4:
                    return "<span>出境游<em></em></span>";
                case 5:
                    return "<span>周边游<em></em></span>";
                case 7:
                    return "<span>邮轮<em></em></span>";
                case 9:
                    return "<span>国内游<em></em></span>";
                case 13:
                    return "<span>当地玩乐<em></em></span>";
                case 14:
                    return "<span>跟团游<em></em></span>";
                default:
                    return ""
                }
            }
            function e(a) {
                return ""
            }
            function f(a) {
                var b = a.Price || a.lowerPrice;
                return Number(b) === parseInt(b, 10) ? "<p><i>¥</i>" + parseInt(b, 10) + "<em>起</em></p>": "<p><i>¥</i>" + b.toFixed(1) + "<em>起</em></p>"
            }
            function g(a) {
                return a.length > 28 ? a.substring(0, 26) + "...": a
            }
            function h(a, b) {
                var c, d = '<a target="_blank" title="' + a.Title + '" onclick="' + i(a, b) + '"';
                return c = d + " href=" + a.ProductUrl + ">"
            }
            function i(a, b) {
                var c, d, e, f = "";
                return d = fish.cookie.get("NCid") || a.productId,
                c = a.ProjectType,
                e = a.ProductId,
                f = "cid147_" + c + "_" + d + "_" + e + "_" + b,
                "_tcTraObj._tcTrackEvent('我的同程猜你喜欢点击事件', 'wdtc_cainixihuan', 'resource', '" + f + "')"
            }
            var j, k, l, m, n = '<div id="GuessLike"><h3>猜你喜欢<span class="change none">换一组</span></h3><div class="guess_box"><div class="guess_like clearfix"><div class="guess_list"><ul></ul></div></div></div></div>';
            j = fish.getNmemberId() || 0,
            k = fish.cookie.get("longKey") || null,
            m = c() || null,
            l = fish.cookie.get("NCid") || null,
            k && m && fish.ajax({
                url: "//www.ly.com/commonajax/HomeAjax/GuessYourLike?ProjectType=0",
                data: "userid=" + j + "&LoginKey=" + k + "&FirstTime=" + m + "&cityid=" + l,
                type: "jsonp",
                fn: function(b) {
                    function c(b) {
                        for (var c = "",
                        d = 0,
                        e = b; 8 > d; d++) c += a(e[d], d);
                        fish.all("#GuessLike ul img").length > 0 ? fish.all("#GuessLike ul img").anim("opacity:0.1;filter:alpha(opacity=10)", 500,
                        function() {
                            fish.one("#GuessLike ul").html(c),
                            fish.all("#GuessLike ul img").anim("opacity:1;filter:alpha(opacity=100)", 700)
                        }) : (fish.one("#GuessLike ul").html(c), fish.all("#GuessLike ul img").anim("opacity:1;filter:alpha(opacity=100)", 700))
                    }
                    if (b && b.ReturnValue.length >= 8) {
                        fish.one("#myOrder").html("after", n);
                        var d = b.ReturnValue;
                        c(d),
                        d.length >= 12 && fish.all("#GuessLike .change").removeClass("none").on("click",
                        function() {
                            d.sort(function() {
                                return Math.random() > .5 ? -1 : 1
                            }),
                            c(d)
                        })
                    }
                }
            })
        } (),
        function() {
            function _proType(a) {
                switch (a.ProjectTag) {
                case 1:
                    return JD(a);
                case 2:
                    return ZBY(a);
                case 3:
                    return GNY(a);
                case 4:
                    return GJJP(a);
                case 5:
                    return GNJP(a);
                case 6:
                    return HCP(a);
                case 7:
                    return QCP(a);
                case 8:
                    return YL(a);
                case 9:
                    return CJ(a);
                case 10:
                    return GJJD(a);
                case 11:
                    return QZ(a);
                case 12:
                    return WL(a);
                case 13:
                    return GJWL(a);
                case 14:
                    return BSGT(a);
                case 15:
                    return Hotel(a);
                case 16:
                    return InternatHotel(a)
                }
            }
            function actionJD_WL(a, b) {
                var c = "",
                d = listCountDown(a);
                if ("undefined" !== d && void 0 !== d && (c = '<span attr-down="' + d + '" class="Countdownbox"></span>'), "0" === b && "2" == a.ActivitySortID && 1 == a.IsShowPayOrder) c += '<a class="order_pay List_tick" attr-url="' + a.ProductPayUrl + '" href="javascript:">立即支付</a>';
                else {
                    var e = isOrderPay(a);
                    null == e ? c: c += e
                }
                var f = isOrderComments(a);
                null == f ? c: c += f;
                var g = isOrderInfo(a);
                return null == g ? c: c += g,
                c
            }
            function actionBS(a) {
                var b = "",
                c = listCountDown(a);
                "undefined" !== c && void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderComments(a);
                null == e ? b: b += e;
                var f = isOrderInfo(a);
                return null == f ? b: b += f,
                b
            }
            function actionZBY(a) {
                var b = "",
                c = listCountDown(a);
                "undefined" !== c && void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderComments(a);
                null == e ? b: b += e;
                var f = isOrderInfo(a);
                return null == f ? b: b += f,
                b
            }
            function actionHotel(a) {
                var b = "",
                c = listCountDown(a);
                void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderComments(a);
                if (null == e ? b: b += e, 0 === a.ProductType) {
                    var f = isOrderInfo(a);
                    null == f ? b: b += f
                } else if (1 === a.ProductType) {
                    var g = '<a class="order_hotel_remove order_Comments"  href="javascript:" attr-url="' + a.OrderCancelUrl + '">取消订单</a>';
                    a.IsShowCancelOrder === !1 ? b: b += g;
                    var h = '<a class="order_cancel" style="display:none" href="javascript:">申请退款</a>';
                    b += h
                }
                return b
            }
            function actionInterHotel(a) {
                var b = "",
                c = listCountDown(a);
                void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderComments(a);
                null == e ? b: b += e;
                var f = isOrderInfo(a);
                return null == f ? b: b += f,
                b
            }
            function actionCJ_Visa_SCENIC(a, b) {
                var c = "",
                d = listCountDown(a);
                void 0 !== d && (c = '<span attr-down="' + d + '" class="Countdownbox"></span>');
                var e = isOrderPay(a);
                null == e ? c: c += e,
                "cj" === b && a.IsCanTuiGai === !0 ? c += '<span class="order_Btn Cj_orderchange" attr-type="cj" attr-OrderId="' + a.OrderId + '" attr-SerialId="' + a.ChuJingSerialId + '">' + btn_type(a) + "</span>": "visa" === b && a.IsCanTuiGai === !0 && (c += '<span class="order_Btn Cj_orderchange" attr-type="visa" attr-OrderId="' + a.OrderId + '" attr-SerialId="' + a.ChuJingSerialId + '">' + btn_type(a) + "</span>");
                var f = isOrderComments(a);
                null == f ? c: c += f;
                var g = isOrderInfo(a);
                null == g ? c: c += g;
                var h = isReserve(a);
                return null == h ? c: c += h,
                c
            }
            function actionGNY(a) {
                var b = listCountDown(a),
                c = "";
                "undefined" !== b && void 0 !== b && (c = '<span attr-down="' + b + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? c: c += d;
                var e = isOrderComments(a);
                null == e ? c: c += e;
                var f = isOrderInfo(a);
                return null == f ? c: c += f,
                c
            }
            function actionGNJP(a) {
                var b = listCountDown(a),
                c = "";
                "undefined" !== b && void 0 !== b && (c = '<span attr-down="' + b + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? c: c += d;
                var e = isOrderComments(a);
                null == e ? c: c += e;
                var f = isOrderInfo(a);
                return null == f ? c: c += f,
                c
            }
            function actionGJJP(a) {
                var b = "",
                c = listCountDown(a);
                "undefined" !== c && void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderComments(a);
                null == e ? b: b += e;
                var f = isOrderCancel(a);
                null == f ? b: b += f;
                var g = isOrderInfo(a);
                return null == g ? b: b += g,
                b
            }
            function actionYL(a) {
                var b = "",
                c = isOrderPay(a);
                null == c ? b: b += c;
                var d = isOrderComments(a);
                null == d ? b: b += d;
                var e = isOrderInfo(a);
                return null == e ? b: b += e,
                b
            }
            function actionHCP(a) {
                var b = "",
                c = listCountDown(a);
                "undefined" !== c && void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderInfo(a);
                return null == e ? b: b += e,
                b
            }
            function actionQCP(a) {
                var b = "",
                c = listCountDown(a);
                "undefined" !== c && void 0 !== c && (b = '<span attr-down="' + c + '" class="Countdownbox"></span>');
                var d = isOrderPay(a);
                null == d ? b: b += d;
                var e = isOrderInfo(a);
                return null == e ? b: b += e,
                b
            }
            function JD(a) {
                return '<li class="jd order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_jd.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + acquireTime(a) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionJD_WL(a, "0") + "</span></li>"
            }
            function ZBY(a) {
                return '<li class="zby order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_zby.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + getTime(a.UseTime) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionZBY(a) + "</span></li>"
            }
            function GNY(a) {
                return '<li class="gny order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_gny.jpg"></span><span class="list_title">' + GNY_url(a) + '<span class="order_number">订单号：' + a.OrderId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionGNY(a) + "</span></li>"
            }
            function GJJP(a) {
                return '<li class="gjjp order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_gjjp.jpg"></span><span class="list_title">' + GJJP_type(a) + '<span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + GJJP_DepartureDate(a) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionGJJP(a) + "</span></li>"
            }
            function GNJP(a) {
                return '<li class="gnjp order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_gnjp.jpg"></span><span class="list_title">' + GNJP_type(a) + '<span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + GNJP_DepartureDate(a) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionGNJP(a) + " </span></li>"
            }
            function HCP(a) {
                return '<li class="hcp order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_trainticket.jpg"></span><span class="list_title">' + source_type(a) + '<i class="train_no">' + a.TrainNo + "</i><i>" + a.FromPlace + '</i><em class="jiantou"></em><i>' + a.ToPlace + '</i><span class="order_number">取票号：' + a.TicketNo + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + data_string(a.StartDate) + "</span><span>" + data_string(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionHCP(a) + "</span></li>"
            }
            function QCP(a) {
                return '<li class="qcp order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_busticked.jpg"></span><span class="list_title"><i class="coach_type">' + a.CoachType + '</i>&nbsp;<i class="coach_no">' + a.CoachNo + "</i>&nbsp;<i>" + a.FromPlace + '</i><em class="jiantou"></em><i>' + a.ToPlace + '</i><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + data_string(a.UseTime) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionQCP(a) + "</span></li>"
            }
            function YL(a) {
                return '<li class="yl order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_ly.jpg"></span><span class="list_title">' + addProcName(a) + '<span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + YL_type(a) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionYL(a) + "</span></li>"
            }
            function CJ(a) {
                return '<li class="cj order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_cjy.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionCJ_Visa_SCENIC(a, "cj") + "</span></li>"
            }
            function GJJD(a) {
                return '<li class="gjjd order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_gjjd.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionCJ_Visa_SCENIC(a) + "</span></li>"
            }
            function QZ(a) {
                return '<li class="qz order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_visa.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionCJ_Visa_SCENIC(a, "visa") + "</span></li>"
            }
            function WL(a) {
                return '<li class="wl order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_ddwy.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.OrderId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + acquireTime(a) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionJD_WL(a, "1") + "</span></li>"
            }
            function GJWL(a) {
                return '<li class="gjwl order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/GJDDWL.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionCJ_Visa_SCENIC(a) + "</span></li>"
            }
            function BSGT(a) {
                return '<li class="bsgt order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_zb.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.OrderId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date">' + getTime(a.UseTime) + '</span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionBS(a) + "</span></li>"
            }
            function acquireTime(a) {
                return 0 === a.ProductType ? getTime(a.UseTime) : "<span>" + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + "</span>"
            }
            function Hotel(a) {
                return 0 === a.ProductType ? '<li class="hotel order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_hotel.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionHotel(a) + "</span></li>": '<li class="hotel order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_tgjd.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + "</a>" + ticketlistTuan(a) + '</span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionHotel(a) + "</span></li>"
            }
            function InternatHotel(a) {
                return '<li class="InternatHotel order_li"><span class="list_pic"><img src="http://img1.40017.cn/cn/c/order/s/2015/orderlist/img_gjhotel.jpg"></span><span class="list_title"><a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '" title="' + a.ProductName + a.ProductEnglishName + '">' + astrictEllipsis(a) + '</a><span class="order_number">订单号：' + a.SerialId + '</span></span><span class="list_money"><em class="yen">¥</em><em class="money_data">' + removeDecimal(a.ProductPrice) + '</em></span><span class="list_date"><span>' + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + '</span></span><span class="list_state">' + a.ChieseOrderStatus + '</span><span class="list_cz">' + actionInterHotel(a) + "</span></li>"
            }
            function addProcName(a) {
                var b;
                return b = 0 === a.ProductType ? '<a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + "</a>": a.ProductName
            }
            function source_type(a) {
                var b = a.ProductType,
                c = "";
                return 1 === b && (c = '<span class="train_ico">12306</span>'),
                c
            }
            function YL_type(a) {
                var b = a.ProductType,
                c = "";
                return c = 0 === b ? "<span>" + getTime(a.StartDate) + "</span><span>" + getTime(a.EndDate) + "</span>": "&nbsp;"
            }
            function GNY_url(a) {
                var b;
                return b = "" !== a.ProductRedirectUrl || null !== a.ProductRedirectUrl ? '<a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + "</a>": a.ProductName
            }
            function ticketlistTuan(a) {
                var b = a.HgtConfirmationCodeList,
                c = "";
                if (0 === a.HgtConfirmationCodeList.length) return c;
                c = '<span class="ticketbox"><i>券号</i><ul class="ticketlist">';
                for (var d = 0; d < b.length; d++) c += '<li attr-url="http://member.ly.com//hotel/TuanHotelReturn.aspx?couponId=' + a.HgtConfirmationCodeList[d].HgtConfirmationCode + '" attr-type=' + a.HgtConfirmationCodeList[d].IsCanReturnMoney + ">" + a.HgtConfirmationCodeList[d].HgtConfirmationCode + "</li>";
                return c += "</ul></span>"
            }
            function GJJP_type(a) {
                switch (a.ProductType) {
                case 0:
                    return '<span class="flight_go"><em class="go_ico">去</em><i>' + a.FlightOrderSegmentLists[0].SegmentAirName + "</i><i>" + a.FlightOrderSegmentLists[0].FlightNo + "</i><i>" + a.FlightOrderSegmentLists[0].DepartureCity + '</i><em class="jiantou">&nbsp;</em><i>' + a.FlightOrderSegmentLists[0].ArrivalCity + "</i></span>";
                case 1:
                    return '<span class="flight_go"><em class="go_ico">去</em><i>' + a.FlightOrderSegmentLists[0].SegmentAirName + "</i><i>" + a.FlightOrderSegmentLists[0].FlightNo + "</i><i>" + a.FlightOrderSegmentLists[0].DepartureCity + '</i><em class="jiantou">&nbsp;</em><i>' + a.FlightOrderSegmentLists[0].ArrivalCity + '</i></span><span class="flight_back"><em class="back_ico">回</em><i>' + a.FlightOrderSegmentLists[1].SegmentAirName + "</i><i>" + a.FlightOrderSegmentLists[1].FlightNo + "</i><i>" + a.FlightOrderSegmentLists[1].DepartureCity + '</i><em class="jiantou">&nbsp;</em><i>' + a.FlightOrderSegmentLists[1].ArrivalCity + "</i></span>";
                case 2:
                    for (var b = "",
                    c = 0; c < a.FlightOrderSegmentLists.length; c++) b += '<span class="flight_each"><em class="multipass_air">第' + (c + 1) + "程</em><i>" + a.FlightOrderSegmentLists[c].SegmentAirName + "</i><i>" + a.FlightOrderSegmentLists[c].FlightNo + "</i><i>" + a.FlightOrderSegmentLists[c].DepartureCity + '</i><em class="jiantou">&nbsp;</em><i>' + a.FlightOrderSegmentLists[c].ArrivalCity + "</i></span>";
                    return b
                }
            }
            function GJJP_DepartureDate(a) {
                switch (a.ProductType) {
                case 0:
                    return "<span>" + data_stringAir(a.FlightOrderSegmentLists[0].DepartureDate) + "</span>";
                case 1:
                    return "<span>" + data_stringAir(a.FlightOrderSegmentLists[0].DepartureDate) + "</span><span>" + data_stringAir(a.FlightOrderSegmentLists[1].DepartureDate) + "</span>";
                case 2:
                    for (var b = "",
                    c = 0; c < a.FlightOrderSegmentLists.length; c++) b += "<span>" + data_stringAir(a.FlightOrderSegmentLists[c].DepartureDate) + "</span>";
                    return b
                }
            }
            function GNJP_DepartureDate(a) {
                switch (a.ProductType) {
                case 0:
                    return "<span>" + getTime(a.FlightOrderSegmentLists[0].DepartureDate) + "<em>&nbsp;</em>" + getHourMin(a.FlightOrderSegmentLists[0].DepartureDate) + "</span>";
                case 1:
                    return "<span>" + getTime(a.FlightOrderSegmentLists[0].DepartureDate) + "<em>&nbsp;</em>" + getHourMin(a.FlightOrderSegmentLists[0].DepartureDate) + "</span><span>" + getTime(a.FlightOrderSegmentLists[1].DepartureDate) + "<em>&nbsp;</em>" + getHourMin(a.FlightOrderSegmentLists[1].DepartureDate) + "</span>";
                case 2:
                    for (var b = "",
                    c = 0; c < a.FlightOrderSegmentLists.length; c++) b += "<span>" + getTime(a.FlightOrderSegmentLists[c].DepartureDate) + "<em>&nbsp;</em>" + getHourMin(a.FlightOrderSegmentLists[c].DepartureDate) + "</span>";
                    return b
                }
            }
            function GNJP_type(a) {
                switch (a.ProductType) {
                case 0:
                    return '<span><em class="go_ico">去</em><i>' + a.FlightOrderSegmentLists[0].DepartureName + '</i><em class="jiantou"></em><i>' + a.FlightOrderSegmentLists[0].ArrivalName + "</i></span>";
                case 1:
                    return '<span><em class="go_ico">去</em><i>' + a.FlightOrderSegmentLists[0].DepartureName + '</i><em class="jiantou"></em><i>' + a.FlightOrderSegmentLists[0].ArrivalName + '</i></span><span><em class="back_ico">返</em><i>' + a.FlightOrderSegmentLists[1].DepartureName + '</i><em class="jiantou"></em><i>' + a.FlightOrderSegmentLists[1].ArrivalName + "</i></span>";
                case 2:
                    for (var b = "",
                    c = 0; c < a.FlightOrderSegmentLists.length; c++) b += '<span class="flight_each"><em>第' + (c + 1) + "程</em><i>" + a.FlightOrderSegmentLists[c].DepartureName + "</i><i>" + a.FlightOrderSegmentLists[c].FlightNo + "</i><i>" + a.FlightOrderSegmentLists[c].DepartureCity + '</i><em class="jiantou"></em><i>' + a.FlightOrderSegmentLists[0].ArrivalCity + "</i></span>";
                    return b
                }
            }
            function data_stringAir(str) {
                function dFormat(a) {
                    return 10 > a ? "0" + a.toString() : a
                }
                for (var d = eval("new " + str.substr(1, str.length - 2)), ar_date = [d.getFullYear(), d.getMonth() + 1, d.getDate(), d.getHours(), d.getMinutes()], i = 0; i < ar_date.length; i++) ar_date[i] = dFormat(ar_date[i]);
                return ar_date.slice(0, 3).join("-") + " " + ar_date.slice(3).join(":")
            }
            function data_string(str) {
                function dFormat(a) {
                    return 10 > a ? "0" + a.toString() : a
                }
                for (var d = eval("new " + str.substr(1, str.length - 2)), ar_date = [d.getFullYear(), d.getMonth() + 1, d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds()], i = 0; i < ar_date.length; i++) ar_date[i] = dFormat(ar_date[i]);
                return ar_date.slice(0, 3).join("-") + " " + ar_date.slice(3).join(":")
            }
            function removeDecimal(a) {
                var b = a.split(".")[1],
                c = a;
                return void 0 === b ? c: (1 == b.length ? "0" === b ? c = a.split(".")[0] : c: 2 == b.length ? "00" === b ? c = a.split(".")[0] : c: 3 == b.length ? "000" === b ? c = a.split(".")[0] : c: 4 == b.length && ("0000" === b ? c = a.split(".")[0] : c), c)
            }
            function getTime(a) {
                var b = data_string(a);
                return b.split(" ")[0]
            }
            function getHourMin(a) {
                var b = data_string(a);
                return b.split(" ")[1].substring(0, 5)
            }
            function isOrderPay(a) {
                var b;
                return 1 == a.IsShowPayOrder ? 7 === a.ProjectTag ? '<a class="order_pay buspaybtn" attr-id="' + a.OrderId + '" attr-product = "' + a.ProductPrice + '" href="javascript:" >立即支付</a>': 15 === a.ProjectTag ? '<a class="order_pay hotelpaybtn"  attr-type="' + a.ProductType + '" attr-Serialid="' + a.SerialId + '"  href="javascript:" >立即支付</a>': 2 === a.ProjectTag && 0 === a.ProductType ? '<a class="order_pay zby_paybtn" attr-id="' + a.OrderId + '" href="javascript:" >立即支付</a>': 6 === a.ProjectTag ? '<a class="order_pay train_paybtn" attr-id="' + a.OrderId + '" href="javascript:" >立即支付</a>': 3 === a.ProjectTag ? '<a class="order_pay gny_paybtn" attr-id="' + a.OrderId + '" href="javascript:" >立即支付</a>': 4 === a.ProjectTag ? '<a class="order_pay GGJP_paybtn" attr-order="' + a.OrderDetailUrl + '" attr-id="' + a.OrderId + '" href="javascript:" >立即支付</a>': 5 === a.ProjectTag ? '<a class="order_pay GNJP_paybtn" attr-id="' + a.OrderId + '" href="javascript:" >立即支付</a>': 16 === a.ProjectTag ? '<a class="order_pay GJHotel_paybtn" attr-id="' + a.SerialId + '" href="javascript:" >立即支付</a>': (b = a.ProductPayUrl, '<a class="order_pay" href="' + b + '">立即支付</a>') : void 0
            }
            function isOrderCancel(a) {
                return 1 == a.IsShowCancelOrder ? '<a class="order_cancel_gjjp" attr-url="http://member.ly.com/IFlight/FlightMemberCancelInterOrder.aspx?iOrderId=' + a.OrderId + '&isFromDeatial=isFromDeatial">取消订单</a>': void 0
            }
            function isOrderInfo(a) {
                return "" == a.OrderDetailUrl ? void 0 : '<a class="infoorder" target="_blank" href="' + a.OrderDetailUrl + '">查看订单</a>'
            }
            function isOrderComments(a) {
                return 1 == a.IsShowCommentOrder ? '<a class="order_Comments" href="' + a.ProductCommentUrl + '">我要点评</a>': void 0
            }
            function isReserve(a) {
                return 1 == a.CanContinueBooking ? '<a class="order_yd" href="' + a.ContinueBookingUrl + '">继续预订</a>': void 0
            }
            function listCountDown(a) {
                if (a.IsShowPayOrder === !0) {
                    var b, c = fish.one(".order_list").attr("att-now");
                    if (null !== /\/Date\((\d+)+.*\)\//.exec(a.PayDeadline) && null !== /\/Date\((\d+)+.*\)\//.exec(c)) {
                        var d = /\/Date\((\d+)+.*\)\//.exec(a.PayDeadline)[1],
                        e = /\/Date\((\d+)+.*\)\//.exec(c)[1];
                        return b = d - e,
                        b > 0 ? b: void 0
                    }
                }
            }
            function countDownfun(a) {
                fish.all(".Countdownbox", a).each(function() {
                    var a, b, c, d, e, f = fish.one(this),
                    g = f.attr("attr-down");
                    "undefined" !== g && fish.countDown(parseInt(g),
                    function(g) {
                        b = g[0],
                        c = g[1],
                        d = g[2],
                        e = g[3],
                        10 > c ? c = "0" + c: c,
                        10 > d ? d = "0" + d: d,
                        10 > e ? e = "0" + e: e,
                        a = 0 === b ? "": '<span class="red">' + b + "</span>:";
                        var h = '<p class = "lowtitle">剩余支付时间：</p><p class="timebox">' + a + '<span class="red">' + c + '</span>:<span class="red">' + d + '</span>:<span class="red">' + e + "</span></p>";
                        f.html(h)
                    },
                    function() {
                        var a = fish.one(f).parent(".list_cz"),
                        b = fish.one(".order_pay", a);
                        fish.one(f).parent(".order_li");
                        b.hasClass("hotelpaybtn") ? b.removeClass("hotelpaybtn") : b.hasClass("buspaybtn") && b.removeClass("buspaybtn"),
                        fish.one(".order_pay", a).attr("href", "javascript:").addClass("grayBtn"),
                        fish.one(".Countdownbox", a).html("remove")
                    })
                })
            }
            function ZBY_url(a) {
                var b;
                return b = null === a.ProductRedirectUrl ? a.ProductName: '<a class="list_title_name" target="_blank" href="' + a.ProductRedirectUrl + '">' + a.ProductName + "</a>"
            }
            fish.ajax({
                url: "/center/OrderAjax/index",
                data: "OrderFilter=1&DateType=2&IsAjax=1",
                openType: "post",
                type: "json",
                fn: function(a) {
                    fish.one("#unPayCount").html(a.ReturnValue.OrderListCount)
                }
            }),
            fish.ajax({
                url: "/center/OrderAjax/index",
                data: "OrderFilter=3&DateType=2&IsAjax=1",
                openType: "post",
                type: "json",
                fn: function(a) {
                    fish.one("#unUseCount").html(a.ReturnValue.OrderListCount)
                }
            }),
            fish.ajax({
                url: "/center/OrderAjax/index",
                data: "OrderFilter=2&DateType=2&IsAjax=1",
                openType: "post",
                type: "json",
                fn: function(a) {
                    fish.one("#unCommentCount").html(a.ReturnValue.OrderListCount)
                }
            }),
            fish.one(".order_list").delegate(".ticketbox", "mouseover",
            function(a) {
                var b = a.delegateTarget;
                fish.one(b).addClass("showtick_hotel")
            }).delegate(".ticketbox", "mouseout",
            function(a) {
                var b = a.delegateTarget;
                fish.one(b).removeClass("showtick_hotel")
            }),
            function(a) {
                window.closeAction = function() {
                    a.mPop.close(),
                    a.all(".order_cancel_gjjp").removeClass("the_cancel")
                },
                window.successAction = function() {
                    var b = fish.one(".the_cancel"),
                    c = b.parent(".order_li");
                    a.one(".list_state", c).html("取消成功"),
                    a.all(".Countdownbox,.order_pay,.order_cancel_gjjp", c).html("remove")
                },
                window.dialogAction = function() {
                    a.all(".outBag").css("width:589px; height:513px;margin-top: auto; margin-left: auto;")
                },
                window.alertAction = function() {
                    a.all(".outBag").css("width:435px;height:205px;border:none;margin-top: 150px; margin-left: 75px;"),
                    fish.all(".popPage").css("margin:0;")
                }
            } (fish),
            fish.one(".order_list").delegate(".Cj_orderchange", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-type"),
                d = "4001-006-519",
                e = fish.one(b).attr("attr-OrderId"),
                f = fish.one(b).attr("attr-serialid");
                fish.one(".btn_confirm").attr("attr-orderid", e).attr("attr-serialid", f),
                fish.one(".hint_label").html(""),
                fish.one("#cj_changremark").css("border-color:#ddd"),
                "visa" === c ? d = "4001-899-812": d,
                fish.one(".change_box .phone_b").html(d),
                "申请取消" === fish.one(b).html() && "visa" === c ? fish.one("#pop_change .btn_confirm").attr("attr-type", "visa_cancel") : fish.one("#pop_change .btn_confirm").attr("attr-type", ""),
                fish.mPop({
                    content: fish.one("#pop_change"),
                    bgclose: !1
                })
            }),
            fish.all("#popbox2_close,.btn_cancel").on("click",
            function() {
                fish.one("#cj_changremark").val(""),
                fish.mPop.close()
            }),
            fish.one(".btn_confirm").on("click",
            function(a) {
                var b, c, d = fish.one(".btn_confirm").attr("attr-orderid"),
                e = fish.one(".btn_confirm").attr("attr-serialid");
                return fish.one(".btn_confirm").hasClass("btn_show") === !1 || fish.trim(fish.one("#cj_changremark").val()).length < 10 ? (fish.one(".hint_label").html("亲，需求字数不少于10个字哦~"), void fish.one("#cj_changremark").css("border-color:#ff7800")) : ("visa_cancel" === fish.one(".btn_confirm").attr("attr-type") ? (b = "http://www.ly.com/intervacation/api/VisaInfo/GetOrderCancel?", c = "orderId=" + d + "&cancelTypeId=54&cancelTypeValue=其他原因&cancelReasonId=54&cancelReasonValue=其他&cancelRemark=" + encodeURI(fish.one("#cj_changremark").val())) : (b = "http://m.ly.com/intervacation/api/Order/GetStatusOfModifyOrderBack?", c = "orderSerialid=" + e + "&orderId=" + d + "&operation=" + encodeURI(fish.one("#cj_changremark").val())), void fish.ajax({
                    url: b,
                    data: c,
                    type: "jsonp",
                    fn: function(a) {
                        fish.one("#cj_changremark").val(""),
                        fish.mPop.close(),
                        "visa_cancel" === fish.one(".btn_confirm").attr("attr-type") ? 1 == a.Data.visaInfo.ResultState ? fn_pop.show() : Success_error.show() : 1 == a.Data.isSuccess ? fn_pop.show() : Success_error.show()
                    }
                }))
            }),
            fish.one("#cj_changremark").on("focus",
            function() {
                var a = fish.one(this);
                a.css("border-color:#8297b0")
            }).on("keyup",
            function() {
                var a = fish.one("#cj_changremark");
                fish.one(".hint_label").html(""),
                fish.trim(a.val()).length >= 1 ? fish.one(".btn_confirm").addClass("btn_show") : fish.one(".btn_confirm").removeClass("btn_show")
            }).on("blur",
            function() {
                var a = fish.one(this);
                a.css("border-color:#ddd")
            }),
            fish.one(".order_list").delegate(".order_cancel_gjjp", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-url");
                fish.one(b).addClass("the_cancel"),
                fish.mPop({
                    iframe: !0,
                    src: c + "&success=successAction&alert=alertAction&dialog=dialogAction&close=closeAction",
                    width: 589,
                    height: 513,
                    afterClose: function() {
                        fish.all(".order_cancel_gjjp").removeClass("the_cancel")
                    }
                })
            }),
            fish.one(".order_list").delegate(".order_hotel_remove", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-url"),
                d = fish.one(b).parent(".list_cz");
                fish.ajax({
                    url: c,
                    type: "json",
                    fn: function(a) {
                        1 === a && (fish.one(b).css("display:none"), fish.one(".order_pay", d).addClass("grayBtn").removeClass("hotelpaybtn"))
                    }
                })
            }),
            fish.one(".order_list").delegate(".buspaybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id"),
                d = fish.one(b).attr("attr-product");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "http://member.ly.com/bus/Pay/MobileGateway?",
                    data: "OrderId=" + c + "&TotalAmount=" + d,
                    openType: "post",
                    type: "json",
                    fn: function(a) {
                        var b = a.response.body.PayUrl;
                        window.location.href = b
                    }
                }))
            }),
            fish.one(".order_list").delegate(".zby_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "http://member.ly.com/zizhuyou/ajaxhandler/orderdetailsajaxcall.aspx?action=GetOrderPayUrl",
                    data: "orderid=" + c,
                    openType: "post",
                    fn: function(a) {
                        window.location.href = a
                    }
                }))
            }),
            fish.one(".order_list").delegate(".train_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id"),
                d = {
                    OrderId: c
                };
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "http://member.ly.com/huochepiao/Handlers/TrainPayHandler.ashx?",
                    data: "para=" + JSON.stringify(d),
                    openType: "get",
                    type: "json",
                    fn: function(a) {
                        window.location.href = a.PayUrl
                    }
                }))
            }),
            fish.one(".order_list").delegate(".gny_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "http://member.ly.com/guoneiyou/AjaxHandler/GuoneiyouAjaxInterface.aspx?action=GetPcPayUrl",
                    data: "customerSerialid=" + c,
                    openType: "post",
                    fn: function(a) {
                        window.location.href = a
                    }
                }))
            }),
            fish.one(".order_list").delegate(".GGJP_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-order"),
                d = fish.one(b).attr("attr-id");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "http://member.ly.com/iflight/ajaxhandler/FlightInterAjaxInterface.aspx?fType=GETPAYURL",
                    data: "orderid=" + d,
                    openType: "post",
                    type: "json",
                    fn: function(a) {
                        "" === a || "" === a.PayUrl ? window.location.href = c: window.location.href = a.PayUrl
                    },
                    err: function() {
                        window.location.href = c
                    }
                }))
            }),
            fish.one(".order_list").delegate(".GNJP_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "/Flight/AjaxHandler/FlightAjaxInterface.aspx?ftype=GETPAYLINK",
                    data: "orderId=" + c,
                    openType: "get",
                    type: "json",
                    fn: function(a) {
                        window.location.href = a.Url
                    }
                }))
            }),
            fish.one(".order_list").delegate(".GJHotel_paybtn", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-id");
                fish.one(b).hasClass("grayBtn") || (fish.one(b).html("支付中..."), fish.ajax({
                    url: "/ghotel/ordercenter/PaymentUrl",
                    data: "orderNo=" + c,
                    openType: "get",
                    type: "json",
                    fn: function(a) {
                        window.location.href = a.Url
                    }
                }))
            }),
            fish.one(".order_list").delegate(".hotelpaybtn", "click",
            function(a) {
                var b, c = a.delegateTarget,
                d = fish.one(c).attr("attr-Serialid");
                fish.one(c).hasClass("grayBtn") || (fish.one(c).html("支付中..."), b = 0 === parseInt(fish.one(c).attr("attr-type"), 10) ? "/Hotel/AjaxHandler/HotelAjaxInterface.aspx?action=GetPayUrl&Serialid=" + d: "/Hotel/AjaxHandler/HotelAjaxInterface.aspx?action=GetTuanPayUrl&Serialid=" + d, fish.ajax({
                    url: b,
                    openType: "get",
                    type: "json",
                    fn: function(a) {
                        if (0 == a.state) {
                            var b = a.payUrl;
                            window.location.href = b
                        } else hotel_pay_error.show()
                    }
                }))
            }),
            fish.require("dialog",
            function() {
                Success_error = fish.dialog({
                    content: '<div class="delete-info warning"><div class="message"><i></i><p>亲，服务器开小差了，请稍后再试试</p></div><div class="pop-btn"><a href="javascript:;" class="ok">稍后再试</a></div></div>',
                    title: " ",
                    bgClose: !1,
                    className: "tips-pop",
                    click: function(a, b) { (fish.one(b).hasClass("ok") || fish.one(b).hasClass("close-dialog-btn")) && this.close()
                    }
                }),
                fn_pop = fish.dialog({
                    content: '<div class="delete-info warning"><div class="message"><i class="green_ico"></i><p>您的退改需求已申请成功，请等待客服联系~</p></div><div class="pop-btn"><a href="javascript:;" class="ok">我知道了</a></div></div>',
                    title: " ",
                    bgClose: !1,
                    className: "tips-pop",
                    click: function(a, b) { (fish.one(b).hasClass("ok") || fish.one(b).hasClass("close-dialog-btn")) && this.close()
                    }
                }),
                hotel_pay_error = fish.dialog({
                    content: '<div class="delete-info warning"><div class="message"><i></i><p>服务器去休息了，请稍后再来哈~</p></div><div class="pop-btn"><a href="javascript:;" class="sure-btn">我知道了</a></div></div>',
                    title: " ",
                    bgClose: !1,
                    className: "tips-pop",
                    click: function(a, b) { (fish.one(b).hasClass("sure-btn") || fish.one(b).hasClass("close-dialog-btn")) && this.close()
                    }
                })
            }),
            fish.one(".order_list").delegate(".LY_instalments", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-url"),
                d = fish.one(b).attr("attr-id");
                fish.ajax({
                    url: c,
                    data: "OrderId=" + d,
                    openType: "post",
                    type: "jsonp",
                    fn: function(a) {
                        a.IsSuccess === !1 ? Success_error.show() : (fish.one(b).html("支付中..."), window.location.href = a.Url)
                    }
                })
            }),
            fish.one(".order_list").delegate(".CJ_instalments", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-url"),
                d = fish.one(b).attr("attr-id");
                fish.ajax({
                    url: c,
                    data: "id=" + d,
                    openType: "post",
                    type: "json",
                    fn: function(a) {
                        a.Success === !1 ? Success_error.show() : (fish.one(b).html("支付中..."), window.location.href = a.ReturnValue.Url)
                    }
                })
            }),
            fish.one(".order_list").delegate(".ticketlist li", "mouseover",
            function(a) {
                var b = a.delegateTarget;
                fish.one(b).addClass("tickethover")
            }).delegate(".ticketlist li", "mouseout",
            function(a) {
                var b = a.delegateTarget;
                fish.one(b).removeClass("tickethover")
            }).delegate(".ticketlist li", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).html(),
                d = fish.one(b).parent(".ticketbox"),
                e = fish.one(b).parent(".order_li"),
                f = fish.one(b).attr("attr-url"),
                g = fish.one(b).attr("attr-type");
                fish.one("i", d).html(c),
                d.removeClass("showtick_hotel"),
                "true" === g ? (fish.one(".order_cancel", e).attr("href", f), fish.one(".order_cancel", e).css("display:block")) : fish.one(".order_cancel", e).css("display:none")
            }),
            fish.one(".order_list").addClass("loagbg"),
            fish.ajax({
                url: "/center/OrderAjax/index?OrderFilter=0&IsAjax=1",
                type: "json",
                openType: "post",
                fn: function(a) {
                    fish.one("#allOrderCount").html(a.ReturnValue.OrderListCount);
                    var b = a.ReturnValue.OrderDetailList.length,
                    c = a.ReturnValue.OrderDetailList,
                    d = "",
                    e = a.ReturnValue.DateTimeNow;
                    if (fish.one(".order_list").attr("att-now", e), fish.one(".order_list").removeClass("loagbg"), 0 == b) return void fish.one("ul", fish.one(".order_list")).html("before", '<div class="nullpage"><i>&nbsp;</i><span>您的订单空空如也，快<a target="_blank" href="http://www.ly.com/">去看看</a>想去哪里玩吧！</span></div>');
                    var f = 3;
                    f = c.length < 3 ? c.length: 3;
                    for (var g = 0; f > g; g++) d += _proType(c[g]),
                    fish.one(".order_list ul").html(d);
                    countDownfun(fish.one(".order_list ul"))
                }
            }),
            fish.one(".order_list").delegate(".List_tick", "click",
            function(a) {
                var b = a.delegateTarget,
                c = fish.one(b).attr("attr-url");
                fish.one(b).hasClass("grayBtn") || fish.dialog({
                    content: '<div class="pass-info warning List_tickbox"><div class="message">您预订是联票景区，需要同时支付所有关联订单</div><div class="pop-btn"><a href="' + c + '" class="ok">支付</a> <a href="javascript:;" class="cancel">取消</a></div></div>',
                    title: " ",
                    bgClose: !1,
                    className: "tips-pop",
                    click: function(a, b) { (fish.one(b).hasClass("cancel") || fish.one(b).hasClass("cancel") || fish.one(b).hasClass("close-dialog-btn")) && this.destroy()
                    }
                }).show()
            });
            var btn_type = function(a) {
                return "待确认" == a.ChieseOrderStatus || "待支付" == a.ChieseOrderStatus ? "申请取消": "申请退改"
            },
            astrictEllipsis = function(a) {
                var b = 58,
                c = a.ProductName + a.ProductEnglishName;
                if (c.length > b) {
                    var d = c.substring(0, b) + "…";
                    return d
                }
                return c
            }
        } ()
    })
} ();